# -*- coding:utf-8 -*-
# @Time:2023/6/2 22:41
# @Author: cevent
# @name=__init__.py

from celery import Celery

# 1.创建celery实例,无需配置broker，由config_from_object引入的config文件配置
celeryDemo = Celery('celeryDemo')

# 2.通过加载config.py来配置
celeryDemo.config_from_object('demo.config')
